package com.xinyue.user.service;

import java.util.List;

import com.xinyue.user.pojo.News;

public interface NewsService {

	int deleteByPrimaryKey(Integer id)throws Exception;

    int insert(News record)throws Exception;

    News selectByPrimaryKey(Integer id)throws Exception;

    List<News> selectAll(Integer count,String city)throws Exception;

    int updateByPrimaryKey(News record)throws Exception;
    
    int updateLikes(Integer id)throws Exception;
    
    List<News> selectBysex(Integer page,Integer sex)throws Exception;
}
